﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AuthorityManagement.aspx.cs"
    Inherits="CURE.SystemManagement.SystemAuthority" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>无标题页</title>
    <style type="text/css">
        ul.rightTools
        {
            float: right;
            display: block;
        }
        ul.rightTools li
        {
            float: left;
            display: block;
            margin-left: 5px;
        }
    </style>
    <script type="text/javascript">
        function add() {
            var name = document.getElementById("addzu").value;
            var url = "SystemManagement/AuthorityManagement.aspx?action=add&name=" + name;
            url = encodeURI(url);
            var data = "";
            var callback = "navTabAjaxDone(this)";
            $("#page").loadUrl(url, data, callback);
        }
        function remove() {
            var groupName = document.getElementById("del").value;
            var url = "SystemManagement/AuthorityManagement.aspx?action=delete&name=" + groupName;
            url = encodeURI(url);
            var data = "";
            var callback = "navTabAjaxDone(this)";
            $("#page").loadUrl(url, data, callback);
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div id="page">
        <div class="pageContent" style="padding: 5px">
            <div class="panel collapse" defh="40">
                <h1>
                    组操作</h1>
                <div>
                    <table>
                        <tr>
                            <td>
                                添加组：
                                <input type="hidden" name="action" value="add" maxlength="10" />
                                <input type="text" name="addzu" id="addzu" maxlength="10" />&nbsp;&nbsp;
                            </td>
                            <td>
                                &nbsp;&nbsp; <a class="button" href="javascript:;" onclick="add()"><span>添加组</span></a>
                            </td>
                            <td>
                                删除组:
                                <select name="deletezu" id="del">
                                    <option value='0'>-请选择-</option>
                                    <asp:Repeater ID="RepeaterGroup1" runat="server">
                                        <ItemTemplate>
                                            <option value='<%#Eval("group_info") %>'>
                                                <%#Eval("group_name")%></option>
                                        </ItemTemplate>
                                    </asp:Repeater>
                                </select>
                            </td>
                            <td>
                                &nbsp;&nbsp;&nbsp;&nbsp;<a class="button" href="javascript:;" onclick="remove()"
                                    style="margin-left: 10px"><span>删除组</span></a>
                            </td>
                        </tr>
                    </table>
                </div>
            </div>
            <div class="divider">
            </div>
            <div class="tabs">
                <div class="tabsHeader">
                    <div class="tabsHeaderContent">
                        <ul>
                            <li><a href="javascript:;"><span>组权限操作</span></a></li>
                        </ul>
                    </div>
                </div>
                <div class="tabsContent" id="tabs">
                    <div>
                        <div layouth="146" style="float: left; display: block; overflow: auto; width: 240px;
                            border: solid 1px #CCC; line-height: 21px; background: #fff">
                            <ul class="tree treeFolder">
                                <li><a href="javascript">所有组</a>
                                    <ul>
                                        <asp:Repeater ID="RepeaterGroupList1" runat="server">
                                            <ItemTemplate>
                                                <li><a href="SystemManagement/AuthorityList.aspx?info=<%#Eval("group_info") %>" target="ajax"
                                                    rel="jbsxBox2">
                                                    <%#Eval("group_name") %></a></li>
                                            </ItemTemplate>
                                        </asp:Repeater>
                                    </ul>
                                </li>
                            </ul>
                        </div>
                        <div id="jbsxBox2" class="unitBox" style="margin-left: 246px;">
                        </div>
                    </div>
                </div>
                <div class="tabsFooter">
                    <div class="tabsFooterContent">
                    </div>
                </div>
            </div>
        </div>
    </div>
    </form>
</body>
</html>
